import corejuliano.gameelement.*;

class corejuliano.gameelement.agent.AgentModel extends TileableModel  
{
	private var life:Number;
	private var activeState:String;
	public static var STATE_WALKING:String = "walking"; 
	public static var STATE_RESTING:String = "resting";
	private var direction:Number;
	
	public function AgentModel(id:String)
	{
		super(id);
	}
	
	public function addLife(life:Number):Void
	{
		this.life += life; 
	}

	public function getLife():Number
	{
		return life;
	}

	public function setLife(life:Number):Void
	{
		this.life = life;
	}
	
	public function getActiveState():String
	{
		return activeState;
	}

	public function setActiveState(activeState:String):Void
	{
		this.activeState = activeState;
	}
	
	public function getDirection():Number
	{
		return direction;
	}

	public function setDirection(direction:Number):Void
	{
		this.direction = direction;
	}
	
	public function toString():String
	{
		return "corejuliano.gameelement.AgentModel";
	}	
}